const baseApi = {
	// 开发版
	develop: {
		//#ifdef H5
		ctx: '/devApi',
		customUrl: {
			rongchuang: '/sunaclivingApi',
			bindHouse: '/bindHouseApi',
			bindHouseHost: 'https://wyscrm-uat.sunac.com.cn'
		},
		//#endif
		//#ifdef MP-WEIXIN
		ctx: "https://wysqadmin-uat.sunac.com.cn",
		customUrl: {
			rongchuang: 'https://sunaclivingtest.sunac.com.cn',
			bindHouseHost: 'https://wyscrm-uat.sunac.com.cn'
		},
		//#endif
	},
	// 体验版
	trial: {
		ctx: "https://wysqadmin-uat.sunac.com.cn",
		customUrl: {
			rongchuang: 'https://sunaclivingtest.sunac.com.cn',
			bindHouseHost: 'https://wyscrm-uat.sunac.com.cn'
		}
	},
	// 正式版
	release: {
		ctx: "https://wysqadmin.sunac.com.cn",
		customUrl: {
			rongchuang: 'https://sunacliving.sunac.com.cn',
			bindHouseHost: 'https://wyscrm.sunac.com.cn'
		}
	}
};
baseApi.development = baseApi.develop;
baseApi.production = baseApi.release;

// request请求baseURL
// #ifdef MP-WEIXIN
// 获取当前帐号信息
const accountInfo = wx.getAccountInfoSync();
// env类型
export const env = accountInfo.miniProgram.envVersion;

export const baseURL = baseApi[env];
// #endif
// #ifdef H5
export const env = process.env.NODE_ENV
export const baseURL = baseApi[env];
// #endif
